<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/4/9
 * Time: 11:03
 */

namespace common\business\ifs;


use common\result\ActionResult;

interface CrudInterface
{
    /**
     * @param $obj
     * @return ActionResult
     */
    public function create($obj);

    /**
     * @param $obj
     * @return ActionResult
     */
    public function update($obj);

    /**
     * @param $obj
     * @return ActionResult
     */
    public function delete($obj);

    /**
     * @param $id
     * @return mixed
     */
    public function read($id);
}